
const Express = require('express');
const router = Express();
const loginRouter = require('./admin/login');
const areaRouter = require('./admin/area');
const categoryRouter = require('./admin/category');
const orderRouter = require('./admin/order');
const promoteRouter = require('./admin/promote');
const accountRouter = require('./admin/account');
const creditRouter = require('./admin/credit');
const productCategory = require('./admin/productcategory');

router.use('/', loginRouter);
router.use('/', areaRouter);
router.use('/', categoryRouter);
router.use('/order', orderRouter);
router.use('/', promoteRouter);
router.use('/account', accountRouter);
router.use('/credit', creditRouter);
router.use('/', productCategory);

module.exports = {
    basePath: '/admin',
    router: router
};
